<?php /*a:2:{s:66:"D:\laragon\www\ssbeautiful\application\manage\view\site_index.html";i:1616114926;s:60:"D:\laragon\www\ssbeautiful\application\manage\view\base.html";i:1596192950;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
	<meta name="renderer" content="webkit">
<title>后台管理系统</title>
<link rel="stylesheet" href="/static/public/awesome/css/font-awesome.min.css" />

<link rel="stylesheet" href="/static/public/layui/css/layui.css" />

<link rel="stylesheet" href="/static/public/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="/static/manage/css/style.css" />

	<link rel="stylesheet" href="/static/public/dist/zoomify.min.css">
	
<script src="/static/public/kindeditor/kindeditor-all.js"></script>
<script src="/static/public/kindeditor/lang/zh_CN.js"></script>
<script src="/static/public/ueditor/ueditor.config.js?t=<?php echo time();?>"></script>
<script src="/static/public/ueditor/ueditor.all.min.js"></script>
<script src="/static/public/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<?php if($is_auth): ?>

<div class="g-main">
    <div class="m-main-title">
        <div class="m-container-fluid">
            <a href="<?php echo url('index/welcome'); ?>"><i class="icon icon-home"></i>首页</a>
            <span class="icon-angle-right"></span>
            <span>系统</span>
            <span class="icon-angle-right"></span>
            <span>系统设置</span>
            <span class="icon-angle-right"></span>
            <span>网站设置</span>
            <a class="u-flush"><i class="icon-repeat"></i></a>
        </div>
    </div>
    <div class="m-main-content">
        <div class="m-container">
            <div class="m-tab-tit clearfix">
                <ul>
                    <li><a href="javascript:;">基本设置</a></li>
                    <li hidden><a href="javascript:;">SEO设置</a></li>
                </ul>
            </div>
            <div class="m-form mt-10">
                <form class="layui-form" id="j_form">
                    <div class="m-tab-con">
                        <table class="m-table">
                            <thead>
                                <tr>
                                    <th colspan="2">网站设置</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td width="15%"><label for="site_name">网站名称<em>*</em></label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_name]" id="site_name" placeholder="请输入网站名称" value="<?php echo htmlentities((isset($info['site_name']) && ($info['site_name'] !== '')?$info['site_name']:'')); ?>" /><span>如：maniac's cms</span></td>
                                </tr>
                                <tr hidden>
                                    <td><label for="site_url">网站地址<em>*</em></label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_url]" id="site_url" placeholder="请输入网站地址" value="<?php echo htmlentities((isset($info['site_url']) && ($info['site_url'] !== '')?$info['site_url']:'')); ?>" /><span>必须以/结尾</span></td>
                                </tr>
                                <tr hidden>
                                    <td><label for="site_icp">网站备案号</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_icp]" id="site_icp" placeholder="请输入网站备案号" value="<?php echo htmlentities((isset($info['site_icp']) && ($info['site_icp'] !== '')?$info['site_icp']:'')); ?>" /><span>如：吉 ICP 备 88888888</span></td>
                                </tr>

                                <tr style="display: none">

                                    <td width="15%"><label for="site_admin_email">网站管理员邮箱</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_admin_email]" id="site_admin_email" placeholder="请输入网站管理员邮箱" value="<?php echo htmlentities((isset($info['site_admin_email']) && ($info['site_admin_email'] !== '')?$info['site_admin_email']:'')); ?>" /><span>如：admin@qq.com</span></td>
                                </tr>
                                <tr>
                                    <td width="15%"><label for="site_phone">客服电话</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_phone]" id="site_phone" placeholder="请输入电话" value="<?php echo htmlentities((isset($info['site_phone']) && ($info['site_phone'] !== '')?$info['site_phone']:'')); ?>" /><span>多个之间用|分隔</span></td>
                                </tr>

                                <tr style="display: none">

                                    <td width="15%"><label for="site_qq">QQ</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_qq]" id="site_qq" placeholder="请输入QQ" value="<?php echo htmlentities((isset($info['site_qq']) && ($info['site_qq'] !== '')?$info['site_qq']:'')); ?>" /><span>多个之间用|分隔</span></td>
                                </tr>

                                <tr style="display: none">

                                    <td width="15%"><label for="site_wechat">微信</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-long" name="db[site_wechat]" id="site_wechat" placeholder="请输入微信" value="<?php echo htmlentities((isset($info['site_wechat']) && ($info['site_wechat'] !== '')?$info['site_wechat']:'')); ?>" /><span>多个之间用|分隔</span></td>
                                </tr>

                                <tr style="display: none">

                                    <td><label for="site_copyright">底部版权</label></td>
                                    <td><div class="m-textarea"><textarea name="db[site_copyright]" class="u-tarea" id="site_copyright" placeholder="请输入底部版权"><?php echo htmlentities((isset($info['site_copyright']) && ($info['site_copyright'] !== '')?$info['site_copyright']:'')); ?></textarea></div></td>
                                </tr>

                                <tr style="display: none">

                                    <td><label for="site_statics">统计代码</label></td>
                                    <td><div class="m-textarea"><textarea name="db[site_statics]" class="u-tarea" id="site_statics" placeholder="请输入统计代码"><?php echo htmlentities((isset($info['site_statics']) && ($info['site_statics'] !== '')?$info['site_statics']:'')); ?></textarea><span>如：cnzz 或百度统计。</span></div></td>
                                </tr>

                                <tr style="display: none">

                                    <td><label>PC 端网站状态</label></td>
                                    <td>
                                        <input type="radio" name="db[site_pc_status]" value="1" title="开启"<?php if(!$info || $info['site_pc_status'] == 1): ?> checked<?php endif; ?> />
                                        <input type="radio" name="db[site_pc_status]" value="0" title="关闭"<?php if($info && $info['site_pc_status'] == 0): ?> checked<?php endif; ?> />
                                    </td>
                                </tr>

                                <tr style="display: none">

                                    <td><label>WAP 端网站状态</label></td>
                                    <td>
                                        <input type="radio" name="db[site_wap_status]" value="1" title="开启"<?php if(!$info || $info['site_wap_status'] == 1): ?> checked<?php endif; ?> />
                                        <input type="radio" name="db[site_wap_status]" value="0" title="关闭"<?php if($info && $info['site_wap_status'] == 0): ?> checked<?php endif; ?> />
                                    </td>
                                </tr>

                                <tr style="display: none">

                                    <td><label for="site_close_txt">网站关闭原因</label></td>
                                    <td><div class="m-textarea"><textarea name="db[site_close_txt]" class="u-tarea" id="site_close_txt" placeholder="请输入网站关闭原因"><?php echo htmlentities((isset($info['site_close_txt']) && ($info['site_close_txt'] !== '')?$info['site_close_txt']:'')); ?></textarea></div></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="m-tab-con dn">
                        <table class="m-table">
                            <thead>
                                <tr>
                                    <th colspan="2">SEO设置</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td width="15%"><label for="site_title">网站标题</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-longer" name="db[site_title]" id="site_title" placeholder="请输入网站标题" value="<?php echo htmlentities((isset($info['site_title']) && ($info['site_title'] !== '')?$info['site_title']:'')); ?>" /><span>如：maniac's cms</span></td>
                                </tr>
                                <tr>
                                    <td><label for="site_keywords">网站关键词</label></td>
                                    <td><input type="text" class="u-ipt u-ipt-longer" name="db[site_keywords]" id="site_keywords" placeholder="请输入网站关键词" value="<?php echo htmlentities((isset($info['site_keywords']) && ($info['site_keywords'] !== '')?$info['site_keywords']:'')); ?>" /><span>多个关键字之间使用','（英文逗号）隔开，如：cms,maniac's cms. 一般 3 ~ 4 个效果最佳。</span></td>
                                </tr>
                                <tr>
                                    <td><label for="site_description">网站描述</label></td>
                                    <td><div class="m-textarea"><textarea name="db[site_description]" class="u-tarea" id="site_description" placeholder="请输入网站描述"><?php echo htmlentities((isset($info['site_description']) && ($info['site_description'] !== '')?$info['site_description']:'')); ?></textarea><span>一般不超过 60 个中文字符。</span></div></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="m-form-btn"><input type="hidden" name="option_name" value="site_info" /><input type="hidden" name="id" value="2"><button id="j_btn" class="u-btn">确定提交</button></div>
                </form>
            </div>
        </div>
    </div>
</div>

<?php endif; ?>
<input type="hidden" name="action_uri" value="<?php echo url('action'); ?>" />

<input type="hidden" name="redirect_uri" value="<?php echo url('index'); ?>" />

<input type="hidden" name="region_uri" value="/manage/regions/regions" />
<script src="/static/public/js/jquery-1.10.2.js"></script>
<script src="/static/public/js/maniac.ui.js"></script>
<script src="/static/public/layui/layui.js" charset="utf-8"></script>
<script src="/static/public/js/aes.js"></script>
<script src="/static/public/js/mode-ecb-min.js"></script>
<script src="/static/public/js/utils.js"></script>
<script src="/static/public/js/dialog.js"></script>
<script src="/static/manage/js/form.js"></script>
<script src="/static/manage/js/js.js"></script>
<script src="/static/public/js/app.js"></script>
<script src="/static/public/js/encrypt.js"></script>
<script src="/static/public/dist/zoomify.min.js"></script>
<script type="text/javascript">
    $('.fdzoom').zoomify();
</script>

<script>
var aesKey = '<?php echo htmlentities($encrypt_key); ?>';
    $(function(){
        layui.use('layer', function(){
            var user_exists = parseInt('<?php echo !empty($user_exists) ? 1  :  0; ?>');
            var user_forbidden = parseInt('<?php echo !empty($user_forbidden) ? 1  :  0; ?>');
            var quit_force = parseInt('<?php echo !empty($quit_force) ? 1  :  0; ?>');
            var is_auth    = parseInt('<?php echo !empty($is_auth) ? 1  :  0; ?>');
            
            if (user_exists) {
                dialog.error('您所登录的用户已被删除', function(){
                	top.location.href = '/manage';
                    return false;
                });
            }
            
            if (user_forbidden) {
                dialog.error('您的账户已被禁用', function(){
                	top.location.href = '/manage';
                    return false;
                });
            }

            if (quit_force) {
                dialog.error('同一账户同一时间只能一人在线', function(){
                	top.location.href = '/manage';
                    return false;
                });
            }
            
            if (!is_auth) {
                dialog.error('您没有权限执行此操作', function(){
                    window.location.href = history.go(-1);
                    return false;
                });
            }
        });
    })
</script>

</body>
</html>